home *** CD-ROM | disk | FTP | other *** search
- From: james@belgonet.be (James Bates)
- Newsgroups: comp.lang.c++
- Subject: Re: How do I create xbitmaps with greater colordepth than mono??
- Date: 9 Apr 1996 23:00:48 GMT
- Organization: Belgonet
- Message-ID: <4keq70$vd4@www.belgonet.be>
- References: <3169DCD7.3B36BBF2@ssv1.union.utah.edu>
- NNTP-Posting-Host: dialup09.brussels.eunet.be
- X-Newsreader: WinVN 0.92.6+
- Path: news.belgonet.be!news
-
- In article <3169DCD7.3B36BBF2@ssv1.union.utah.edu>, "Marc E. Christensen" <marc@ssv1.union.utah.edu> says:
- >
- >I've been searching all day for information to create xbitmaps with more than
- >one colordepth (mono). New window manages (e.g. fvwm) use xbitmaps which are
- >8bpp (possibly more but I don't know). I have been unsuccessful in finding any
- >incormation on the formats for these graphics. Xbitmaps are c code - right?
- >
-
- Xbitmaps with more than two colors are called "xpixmaps". They can have
- whatever depth you want. X pixmaps are most commonly stored in a file
- with extension .xpm. Such a file contains what looks like C code, its just
- the definition of a string. These .xpm pixmaps can easily be manipulated
- by means of the XPM library. As I assume you are Linux, I can tell you
- that a pre-compiled version of the libXpm exists on sunsite:
- ftp://sunsite.unc.edu/pub/Linux/libs/X11 (I think)
-
- However you would be well advised also to download the sources (from the
- same place) because they contain a postscript file which explains how to
- use the Xpm library and what the arguments and return values are of the
- various XPM functions.
-
- If you have any more questions, feel free to mail me, as I have been through
- the same questions a few months ago :)
-
- Good luck!
-